import request from '@/utils/request'

// 查询公益订单信息列表
export function listPublic_order(query) {
    return request({
        url: '/system/public_order/list',
        method: 'get',
        params: query
    })
}

// 查询公益订单信息详细
export function getPublic_order(id) {
    return request({
        url: '/system/public_order/' + id,
        method: 'get'
    })
}

// 新增公益订单信息
export function addPublic_order(data) {
    return request({
        url: '/system/public_order',
        method: 'post',
        data: data
    })
}

// 修改公益订单信息
export function updatePublic_order(data) {
    return request({
        url: '/system/public_order',
        method: 'put',
        data: data
    })
}

// 删除公益订单信息
export function delPublic_order(id) {
    return request({
        url: '/system/public_order/' + id,
        method: 'delete'
    })
}
